<?php

require_once('classes/class.questao.php') ;

class QuestaoController extends Zend_Controller_Action {   

	public function indexAction()    {
		
		global $db, $questoes_por_volume, $base_url, $_GET;
		
	    $questao = new Questao($db) ;
		$res_questao = $questao->select_from('*', 'WHERE id = ' . $_GET['questao_id']);
		$this->view->questao = $res_questao[0] ;	
		
	}
	
	public function estatisticaAction() {
		global $db, $base_url, $_GET ;
		
		$questao = new Questao($db) ;
		$this->view->statistics = $questao->get_statistics($_GET['questao_id']) ;
	}
	
	
}


?>